#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    //构造图片对象
    QPixmap pixmap(":/cu.png");
    //对图片进行缩放效果
    pixmap = pixmap.scaled(30, 30);
    //构造光标对象
    QCursor cursor(pixmap, 10, 10);
    //设置到控件中
    ui->pushButton->setCursor(cursor);
}

Widget::~Widget()
{
    delete ui;
}

